from PyQt5.Qt import *
import sys
from login import Login_Window
from main import Main_Form
class Controller:

    def __init__(self):
        pass

    def show_login(self):
        self.login = Login_Window()
        self.login.switch_window.connect(self.show_main)
        self.login.show()

    def show_main(self):
        self.window = Main_Form()
        self.window.show()
        self.login.close()
        
if __name__ == '__main__':
    app = QApplication(sys.argv)
    controller = Controller()
    controller.show_login()
    sys.exit(app.exec_())




